package com.lagou.goods.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lagou.common.pojo.Goods;
import com.lagou.common.pojo.GoodsVo;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @BelongProject: lagou-parent
 * @author: 胡恺恺
 * @createTime: 2021/1/29  14:20
 * @Description:
 */
@Component
public interface GoodsMapper extends BaseMapper<Goods> {

    /**
     *
     * 分页查询
     *
     * pageSize = 10
     *
     * 查询条件：商品名称、分类、价格范围、库存范围、上架状态
     *
     * 返回类型：Map（list:商品集合、total:总条目数）
     */

    List<Goods> queryByPage(GoodsVo goodsVo);
}
